package com.shakev.coupon.es.service;

import com.shakev.coupon.es.model.Commodity;
import org.springframework.data.domain.Page;
import java.util.List;

/**
 * @ClassName CommodityService
 * @Description TODO
 * @Author 李伟松
 * @CreateDate 2019-05-07 下午 9:38
 * @UpdateDate 2019-05-07 下午 9:38
 * @Version 1.0
 */
public interface CommodityService {

    long count();

    Commodity save(Commodity commodity);

    void delete(Commodity commodity);

    Iterable<Commodity> getAll();

    List<Commodity> getByName(String name);

    Page<Commodity> pageQuery(Integer pageNo, Integer pageSize, String kw);
}
